package org.stimuliband.dsp.goertzel;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

public class Decibeles {

    public Decibeles() {
    }

    @BeforeClass
    public static void setUpClass() {
    }

    @AfterClass
    public static void tearDownClass() {
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }

    @Test
    public void hello() {
        double p = 440;
        double p0 = 38;
        double decib = 10 * Math.log10(p / p0);
        System.out.println(decib);
    }
}
